//
//  SYMyFmdb.h
//  BSHOUYIFANG
//
//  Created by 曹雁彬 on 15/8/22.
//  Copyright (c) 2015年 CYB. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"
#import "SYUser.h"
@interface SYMyFmdb : NSObject
@property (nonatomic,strong)FMDatabase *db;
+ (SYMyFmdb *)shareInstance;
- (void)addWithUser:(SYUser *)user;
- (SYUser *)getUserInfophoneNumber:(NSString *)phoneNumber;
- (BOOL)findUserInfophoneNumber:(NSString *)phoneNumber;
- (void)updataWithUser:(SYUser *)user;

- (void)changeUserName:(NSString *)name phoneNumber:(NSString *)phoneNumber;
- (void)changePassword:(NSString *)password phoneNumber:(NSString *)phoneNumber;
@end
